<?php if (!defined('TL_ROOT')) die('You cannot access this file directly!');

/**
 * Contao Open Source CMS
 * Copyright (C) 2005-2011 Leo Feyer
 *
 * Formerly known as TYPOlight Open Source CMS.
 *
 * This program is free software: you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation, either
 * version 3 of the License, or (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * Lesser General Public License for more details.
 * 
 * You should have received a copy of the GNU Lesser General Public
 * License along with this program. If not, please visit the Free
 * Software Foundation website at <http://www.gnu.org/licenses/>.
 *
 * PHP version 5
 * @copyright  2012 Andreas Koob 
 * @author     Andreas Koob 
 * @package    piwik_analyser 
 * @license    LGPL 
 * @filesource
 */


/**
 * Class piwik_analyser_module_pdfreports
 *
 * @copyright  2012 Andreas Koob 
 * @author     Andreas Koob 
 * @package    Controller
 */
class piwik_analyser_module_pdfreports extends frontend
{
	private $functions;
	
	public function __construct()
	{
		$this->import('Database');
		$this->import('Input');
		$this->functions = new piwik_analyser_functions();
	}
	
	public function getFunctions($currentFunction)
	{
		$strFunctions='';
		$strFunctions.='<option value="pdfreport.addreport"';if($currentFunction=='actions.get'){$strFunctions.=' selected="selected"';}$strFunctions.='>addReport (Not implemented)</option>';
		$strFunctions.='<option value="pdfreport.updatereport"';if($currentFunction=='actions.getentrypageurls'){$strFunctions.=' selected="selected"';}$strFunctions.='>updateReport (Not implemented)</option>';
		$strFunctions.='<option value="pdfreport.deletereport"';if($currentFunction=='actions.getexitpageurls'){$strFunctions.=' selected="selected"';}$strFunctions.='>deleteReport (Not implemented)</option>';
		$strFunctions.='<option value="pdfreport.getreports"';if($currentFunction=='actions.getpageurl'){$strFunctions.=' selected="selected"';}$strFunctions.='>getReports (Not implemented)</option>';
		$strFunctions.='<option value="pdfreport.generatereport"';if($currentFunction=='actions.getpagetitles'){$strFunctions.=' selected="selected"';}$strFunctions.='>generateReport (Not implemented)</option>';
		$strFunctions.='<option value="pdfreport.sendemailreport"';if($currentFunction=='actions.getpagetitle'){$strFunctions.=' selected="selected"';}$strFunctions.='>getPageTitle (Not implemented)</option>';
		return $strFunctions;
	}
	
	public function getQueryCode($function)
	{
		switch($function)
		{
			case 'pdfreport.addreport':
				break;
			case 'pdfreport.updatereport':
				break;
			case 'pdfreport.deletereport':
				break;
			case 'pdfreport.getreports':
				break;
			case 'pdfreport.generatereport':
				break;
			case 'pdfreport.sendemailreport':
				break;
			default:
				break;
		}
	}
	
	public function processFunction($function)
	{
		switch($function)
		{
			case 'pdfreport.addreport':
				break;
			case 'pdfreport.updatereport':
				break;
			case 'pdfreport.deletereport':
				break;
			case 'pdfreport.getreports':
				break;
			case 'pdfreport.generatereport':
				break;
			case 'pdfreport.sendemailreport':
				break;
			default:
				break;
		}
	}
}

?>